package com.yunhe.marketing.service.impl;

import com.yunhe.marketing.esdomain.EsDataClueDemand;
import com.yunhe.marketing.esrepository.EsDataClueDemandrepository;
import com.yunhe.marketing.repository.EnterpriseRepository;
import com.yunhe.marketing.service.SynchronizeDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SynchronizeDataServiceImpl
 * @Description TODO
 * @Author HeTao
 * @Date 2021/5/26 16:11
 * @Version 1.0
 **/
@Service
public class SynchronizeDataServiceImpl implements SynchronizeDataService {

    @Autowired
    private EnterpriseRepository enterpriseRepository;

    @Autowired
    private EsDataClueDemandrepository esDataClueDemandrepository;


    @Override
    public void insertBatch(List<EsDataClueDemand> esDataClueDemandList) {
        esDataClueDemandrepository.saveAll(esDataClueDemandList);
    }
}
